<%@ page language="java" contentType="text/xml; charset=UTF-8" pageEncoding="UTF-8"  trimDirectiveWhitespaces="true" session="false" %>
<%@include file="../include/taglibs.jsp"%>
<%@include file="../include/urls.jsp"%>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<boards from="${from}" to="${to}">
	<link rel="self" href="${boardsUrl}?from=${from}&amp;to=${to}" />
	<c:if test="${prevFrom >= 0 && prevTo >= 0}">
	<link rel="prev" href="${boardsUrl}?from=${prevFrom}&amp;to=${prevTo}" />
	</c:if>
	<c:if test="${nextFrom >= 0 && nextTo >= 0}">
	<link rel="next" href="${boardsUrl}?from=${nextFrom}&amp;to=${nextTo}" />
	</c:if>
	<c:forEach var="board" items="${boards}">
	<board>
		<link rel="self" href="${boardsUrl}${board.id}" />
		<game>
			<link rel="self" href="${boardsUrl}${board.game.id}" />
			<id>${board.game.id}</id>
		</game>
		<player>
			<link rel="self" href="${boardsUrl}${board.player.name}" />
			<name>${board.player.name}</name>
		</player>
	</board>
	</c:forEach>
</boards>